//*** Rendering forms for computation problems having the possible results animated with the help of stars ***

oa.rf.animatedStars = new RenderingForm(
  "animatedStars",
  "This rendering form animates the possible answers of a multiple-choice question as falling stars.",
  RenderingModeEL.individually,
  "Answer the question by picking the falling star with the right answer."
);
/**
 * Decides, if a given arithmetic problem type is applicable to an
 * animatedStars rendering form.
 * 
 * @author Andrei Ionut Cosmin & Ciucardel Vasile Costinel
 * @param {ArithmeticProblemType} ap Type of an arithmetic problem.
 * @return {Boolean} True if given type is applicable, else false.
 */
oa.rf.animatedStars.isApplicableTo = function( apt) {
  return (
      apt instanceof ArithmeticProblemType &&
      ( apt.numberType === NumberTypeEL.NonNegativeInteger ||
        apt.numberType === NumberTypeEL.Integer ||
        apt.numberType === NumberTypeEL.Decimal )
  );
};
